package cn.yangliu.nacos.comm.constant;

/**
 * The type of nacos.
 *
 * @author 问道于盲
 * @date 2019 -12-31
 */
public interface SecurityConstants {


    /**
     * stored in http request header
     */
    String AUTHORIZATION_KEY = "Authorization";
    /**
     * stored in http request header
     */
    String AUTHORIZATION_BEARER = "Bearer ";
    /**
     * stored in http request header
     */
    String AUTHORIZATION_BASIC = "Basic ";
    /**
     * Authorized grant types
     * <p>
     * <b>Request Body</b></br>
     * <b>key</b> = grant_type</br>
     * <b>value</b> = client_credentials
     */
    String AUTHORIZED_GRANT_TYPES_CLIENT_CREDENTIALS = "client_credentials";
    /**
     * Authorized grant types
     * <p>
     * <b>Request Body</b></br>
     * <b>key</b> = grant_type</br>
     * <b>value</b> = password
     */
    String AUTHORIZED_GRANT_TYPES_PASSWORD = "password";
    /**
     * Authorized grant types
     * <p>
     * <b>Request Body</b></br>
     * <b>key</b> = grant_type</br>
     * <b>value</b> = authorization_code
     */
    String AUTHORIZED_GRANT_TYPES_AUTHORIZATION_CODE = "authorization_code";
    /**
     * Authorized grant types
     * <p>
     * <b>Request Body</b></br>
     * <b>key</b> = grant_type</br>
     * <b>value</b> = simple
     */
    String AUTHORIZED_GRANT_TYPES_SIMPLE = "simple";

}
